<template>
  <div>
    <h2>Home 页面</h2>
    <button @click="goAbout">跳转到 About</button>
  </div>
</template>

<script>
export default {
  name: "HomePage",
  methods: {
    goAbout() {
      this.$router.push({ name: 'About' }) // 页面跳转
    }
  }
}
</script>
